const schoolMod = require('../model/schoolMod')

// 该层处理数据库参数
const schoolServ = {
  getSchoolServ: async () => {
    let data = await schoolMod.getSchoolMod() // 查数据库
    return data
  },
  getDeplistServ: async (id) => {
    let data = await schoolMod.getDeplistMod(id) 
    return data
  },
}

module.exports = schoolServ